/**
 * 编码转换
 * @package js.codec
 * @version $Id: __package__.js 97 2009-12-18 09:58:31Z dsonet@gmail.com $
 */
this.addScript("UTF8.js", "UTF8");
this.addScript("GB2312.js", "GB2312");
this.addScript("Base64.js",	["atob", "btoa", "Base64"]);

typeof atob == "function" && $JSI.preload(this.name, "Base64.js", function(){
	eval(this.varText);
	var Base64 = {
		encode: function(s){
			return btoa(s);
		},
		decode: function(s){
			return atob(s);
		}
	};
});
